package blueBridge;

public class Main {
    //1 129
    public int q1(){
        int r = 0;
        for(int i=1;i<10000;i++){
            if(i%77 == 0){
                r++;
            }
        }
        return r;
    }

    // 2319595
    public int q2(){
        int total = 0;

        for(int i=1;i<4952077;i++){
            String s = Integer.toString(i);
            if (Main.haschar(s,'7')){
                total++;
            }
        }
        return total;
    }

    // 40
    public int q3(){
        int[][] mat = new int[7][7];



        return 0;
    }

    public static void main(String[] args) {
//        System.out.println(new Main().q3());
        int x = 1000;
        while (x+1>x){
            x+=1;
        }
        System.out.println(x+1);
    }

    public static boolean haschar(String s,Character c){
        for(int i=0;i<s.length();i++){
            if(s.charAt(i) == c){
                return true;
            }
        }
        return false;
    }
}
